using System;
using System.Reflection;

namespace Microsoft.Practices.Unity.Interception
{
    public class InterfaceInterceptionConfigurationElement : InterceptionConfigurationElement
    {
        public override void Register(IInterceptionConfiguration config,
                                      Type typeToIntercept,
                                      MethodInfo methodInfo,
                                      IInterceptionHandler[] handlers)
        {
            config.InterceptInterface(typeToIntercept, methodInfo, handlers);
        }
    }
}